package com.maxlen.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maxlen.common.utils.PageUtils;
import com.maxlen.goods.entity.SpuInfoEntity;
import com.maxlen.goods.entity.vo.SpuInfoPageParamsVO;
import com.maxlen.goods.entity.vo.spuAdd.SpuSaveVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * spu信息
 *
 * @author MaxLen
 * @email MaxLen@gmail.com
 * @date 2022-10-27 09:43:29
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(SpuInfoPageParamsVO params);

    void saveAllDetail(SpuSaveVO spuSaveVO);

    void saveDetail(SpuInfoEntity spuInfoEntity);

    void updateByPublishStatus(Long spuId);

    BigDecimal getWeightById(Long spuId);

    BigDecimal getWeightBySkuId(Long skuId);
}

